package com.neu.cpsp.dao;

import com.neu.cpsp.pojo.RegulationDetail;
import com.neu.cpsp.pojo.RegulationDetailAndTimes;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RegulationDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RegulationDetail record);

    int insertSelective(RegulationDetail record);

    RegulationDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RegulationDetail record);

    int updateByPrimaryKey(RegulationDetail record);

    RegulationDetail selectByDescribe(String describe, Integer times);

    List<String> selectByTypeId(Integer typeId);

    List<RegulationDetail> selectByTypeIdAndDescribe(@Param("typeId") Integer typeId,
                                                     @Param("describe") String describe);

    List<RegulationDetailAndTimes> selectDetailAndTimes(RegulationDetail record);
}